<?php
/**
 * Created by PhpStorm.
 * User: xiangpeng
 * Date: 2016/12/29
 * Time: 17:52
 */

namespace Common\Model;


class DetailModel  extends  BaseModel
{
    //主键
    protected  $pk  = 'gdid';
    //要操作那张表
    protected $tableName = 'goodsdetail';
    //自动验证
    protected $_validate  = [
        ['intro','require','请添加商品详情',1,3],
        ['service','require','请添加售后服务',1,3]

    ];
}